//
//  AccentColor.swift
//  RssFly
//
//  Created by shen on 2023/10/16.
//

import SwiftUI

public enum AccentColor: String, CaseIterable {
    case red = "Red"
    case orange = "Orange"
    case yellow = "Yellow"
    case green = "Green"
    case mint = "Mint"
    case teal = "Teal"
    case cyan = "Cyan"
    case blue = "Blue"
    case indigo = "Indigo"
    case purple = "Purple"
    case pink = "Pink"
    case brown = "Brown"

    var labelText: Text {
        switch self {
        case .red: return Text("Red", comment: "Profile color option.")
        case .orange: return Text("Orange", comment: "Profile color option.")
        case .yellow: return Text("Yellow", comment: "Profile color option.")
        case .green: return Text("Green", comment: "Profile color option.")
        case .mint: return Text("Mint", comment: "Profile color option.")
        case .teal: return Text("Teal", comment: "Profile color option.")
        case .cyan: return Text("Cyan", comment: "Profile color option.")
        case .blue: return Text("Blue", comment: "Profile color option.")
        case .indigo: return Text("Indigo", comment: "Profile color option.")
        case .purple: return Text("Purple", comment: "Profile color option.")
        case .pink: return Text("Pink", comment: "Profile color option.")
        case .brown: return Text("Brown", comment: "Profile color option.")
        }
    }

    var color: Color {
        switch self {
        case .red: return .red
        case .orange: return .orange
        case .yellow: return .yellow
        case .green: return .green
        case .mint: return .mint
        case .teal: return .teal
        case .cyan: return .cyan
        case .blue: return .blue
        case .indigo: return .indigo
        case .purple: return .purple
        case .pink: return .pink
        case .brown: return .brown
        }
    }
}
